/**
 * 定义视频存储实体
 */
(function(window, angular, undefined){
	var Module = angular.module('water.entity.dvrInfomation', ['waterCommon']);
	
	Module.service('$dvrInfomationService',function($waterDataCommon){
		/**
		 * 获取DVR数据
		 * WWTP_ID
		 * STATION_ID
		 */
		this.getList = function(data){
			var promise = $waterDataCommon.post("/DvrInfomation/getList",data);
			return promise;
		}
		/**
		 * 新建DVR信息
		 */
		this.createModel = function(data){
			var promise = $waterDataCommon.createModel("BC_DVR_INFO",data);
			return promise;
		}
		/**
		 * 更新DVR信息
		 */
		this.updateModel = function(data){
			var promise = $waterDataCommon.updateModel("BC_DVR_INFO",data);
			return promise;
		}
		/**
		 * 删除DVR信息
		 */
		this.deleteModel = function(id){
			var promise = $waterDataCommon.deleteModel("BC_DVR_INFO",{key:id});
			return promise;
		}
	});
}(window, angular));